﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XXX.Models.WMS
{
   
    /// <summary>
    /// 扫码保存内容
    /// </summary>
    public class ScanBarcode
    {
        /// <summary>
        /// 组织
        /// </summary>
        public string cOrg { get; set; }

        /// <summary>
        /// 客户端id
        /// </summary>
        public string clientid { get; set; }
    
        /// <summary>
        /// 来源单据号
        /// </summary>
        public string cCode { get; set; }        
        public string cVenCode { get; set; }

        public string cCusCode { get; set; }
        /// <summary>
        /// 收发类别
        /// </summary>
         public string cRdCode { get; set; }
        public string cDepCode { get; set; }
        public string cPersonCode { get; set; }
        public string cPtCode { get; set; }
        /// <summary>
        /// 仓库编码
        /// </summary>
        public string cWhCode { get; set; }
        public string cPosCode { get; set; }
        /// <summary>
        /// 调拨单用，调入仓库
        /// </summary>
        public string cWhCodeIn { get; set; }
        public string cType { get; set; }
        public string cUserId { get; set; }
        public string cUserName { get; set; }
        //密码，用于 更新co的config
        public string cPwd { get; set; }
        public string cDefine1 { get; set; }
        public string cDefine2 { get; set; }
        public string cDefine3 { get; set; }
        public int? cDefine4 { get; set; }
        public DateTime dDate { get; set; }
        public List<ScanBarcodes> itemList { get; set; }

        //临时表保存的时候用
        public List<ScanBarcodes> barcodelist { get; set; }
        public class ScanBarcodes
        {
            public string xh { get; set; }
            /// <summary>
            /// 来源单据行id
            /// </summary>
            public int? autoid { get; set; }
            /// <summary>
            /// 生产入库，存储modid
            /// </summary>
            public int modid { get; set; }
            /// <summary>
            /// 存货编码
            /// </summary>
            public string cInvCode { get; set; }
            public string cFree1 { get; set; }
            public string cFree2 { get; set; }
            public string cFree3 { get; set; }
            public string cFree4 { get; set; }
            //批次
            public string cBatch { get; set; }
            //生产日期
            public DateTime? dMDate { get; set; }
            //失效日期
            public DateTime? dVDate { get; set; }
            public string cInvName { get; set; }
            public string cInvStd { get; set; }
            public string cComunitName { get; set; }
            public decimal iQuantity { get; set; }
            public string cPosCode { get; set; }
            /// <summary>
            /// 调拨单用，调入货位
            /// </summary>
            public string cPosCodeIn { get; set; }
            public string cBarcodeno { get; set; }

            //表体自定义项1
            public string cBDefine1 { get; set; }
        }
    }
}
